﻿using Ilongshi.Oversea.DataAccess;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ec_System.Service.Web
{
    public class MaxValueService
    {
        /// <summary>
        /// 根据业务号获取最大值
        /// </summary>
        /// <param name="bizType"></param>
        /// <param name="remark"></param>
        /// <returns></returns>
        public int GetMaxValueByBiztype(string bizType, string remark)
        {
            var cmd = DataCommandManager.GetDataCommand("GetMaxValueByBiztype");
            cmd.SetParameterValue("@bizType", bizType);
            cmd.SetParameterValue("@remark", remark);

            return cmd.ExecuteScalar < int > ();
        }
    }
}
